local CommonOHOH = _G.CommonOHOH;
local M = CommonOHOH.class.new(script, CommonOHOH.files.BaseComponent());



function M.new(self,...)
	return M(self,...);
end;

function M.ctor(self, parent)
	M.super.ctor(self, parent);
	self.player=self.parent.player
	self.parent.HurtEvent:Connect(function()
        --显示加经验效果

		self.player.OnboardingFunnelEvent:Action("training") --统计：训练


		local exp=self.parent:GetExpValue()
		self:PlayEffect(exp)
	end)

	self.parent.DieEvent:Connect(function()
        --显示加经验效果
		local exp=self.parent:GetExpValue()
		self:PlayEffect(exp)
	end)
end;

function M.PlayEffect(self,exp)
_G.ClientOHOH.load.UIManager().ui_list.PlayerBattleInfoGui:AddItem("base_exp",exp)
end

return M